<%-- 
    Document   : staff02
    Created on : 02-Aug-2013, 17:05:28
    Author     : Minh Quyen
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen"/>
        <title>Staff | Lafitte</title>
        <link rel="shortcut icon" href="./images2/logo.jpg">

    </head>
    <body style="background-image: url('images2/staff.jpg')">
        <jsp:include flush="" page="staffheader.jsp"/>
        <div class="container-fluid">
            <div class="row-fluid">
                <div class="span2">
                    <jsp:include page="staffnavbar.jsp" />
                </div>
                <div class="span10" align="right">
                    <!--order room-->
                    <c:if test="${not empty ROOM}">
                        <table class="table table-hover">
                            <tr>
                                <th>No.</th>
                                <th>Room</th>
                                <th>Username</th>
                                <th>Full name</th>
                                <th>Card ID</th>
                                <th></th>
                            </tr>
                            <c:forEach var="room" items="${ROOM}" varStatus="counter">
                                <c:if test="${not room.status}">
                                    <form action="Staff" method="POST">
                                        <tr class="info">
                                            <td>${counter.count}</td>
                                            <td>${room.room.roomName}</td>
                                            <td>${room.customers.username}</td>
                                            <td>${room.customers.account.fullname}</td>
                                            <td>${room.customers.cardId}</td>
                                            <td>
                                                <input type="hidden" name="txtRoom" value="${room.bookRoomPK.roomId}" />
                                                <input type="hidden" name="txtUsername" value="${room.customers.username}" />
                                                <button type="submit" class="btn btn-inverse" name="btAction" value="Check">Check</button>
                                            </td>
                                        </tr>
                                    </form>
                                </c:if>
                            </c:forEach>
                        </table>
                    </c:if>

                    <!--birthday-->
                    <c:if test="${not empty BIRTHDAY}">
                        <table class="table table-hover">
                            <tr>
                                <th>No.</th>
                                <th>Username</th>
                                <th>Full name</th>
                                <th>Card ID</th>
                                <th>Rank</th>
                            </tr>
                            <c:forEach var="dob" items="${BIRTHDAY}" varStatus="counter">
                                    <form action="Staff" method="POST">
                                        <tr class="info">
                                            <td>${counter.count}</td>
                                            <td>${dob.username}</td>
                                            <td>${dob.account.fullname}</td>
                                            <td>${dob.cardId}</td>
                                            <td>${dob.rank}</td>
                                        </tr>
                                    </form>
                            </c:forEach>
                        </table>
                    </c:if>

                </div>
            </div>
        </div>
    </body>
</html>
